package com.kaishun.study.filestrategy;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Package: com.kaishun.study.filestrategy
 * @ClassName: Main
 * @Author: zhoukaishun
 * @CreateTime: 2021/11/2 10:38
 * @Description:
 */
@RestController
public class TestController {

    @Resource
    private StrategyUseService strategyUseService;

    @GetMapping("strategyTest")
    public void test(){
        strategyUseService.resoleFile(FileTypeEnum.FILE_B_RESOLVE,new Object());
    }


    public static void main(String[] args) {
        for (int i = 1, j=1; i <10; j++) {
            System.out.print(i+"*"+j+"="+(i*j)+"\t");
            //当行数等于列数时换行，但是列数重0开始，行数加一
            if (j==i) {
                System.out.println();
                j=0;
                i++;
            }
        }
    }

}
